package net.dgg.zz.credential.talent.dao;

import net.dgg.zz.credential.talent.entity.Talent;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface TalentDao {
    /**
     * 写入人才库
     * @param talent
     * @return
     */
    int insert(Talent talent);

    /**
     * 更新人才库
     * @param talent
     * @return
     */
    int updateByPrimaryKey(Talent talent);

    /**
     * 查询人才库
     * @param id
     * @return
     */
    Talent selectByPrimaryKey(Long id);

    /**
     * 查询列表
     * @param params
     * @return
     */
    List<Talent> selectTalentByWithPage(Map params);

    Integer queryExist(Map params);

    Integer queryExistEdit(Map params);

    String queryEntry(Long companyId);

    Integer count(Map params);
}
